# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pyexcel-text
_pkgname=pyexcel-text
pkgver=0.2.7.1
pkgrel=7
pkgdesc='A plugin to pyexcel and provides the capability to present and write data in text formats.'
arch=('any')
url='https://pypi.org/project/pyexcel-text/#files'
license=('BSD')
depends=('python' 'python-pyexcel' 'python-tabulate')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('82d64c0d97fde514b908bbfa9f735e2a0d5d528fb3234ff2516f209bf149ba3111e44150598f32bd7a3b9202d24ac1832a740a6290a832f0f52f79977b7a3cfa')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

